package com.jumi.microservice.constant;

import com.jumi.microservice.common.exception.BusinessExceptionAssert;

/**
 * @author Administrator
 */

public enum LabelEnum implements BusinessExceptionAssert {
    /**
     * 标签异常处理
     */
    LABEL_HAS_EXISTED(500, "标签名称已经存在"),
    LABEL_STATUS_ABLED(500, "启用状态的标签,不能删除");
    private final Integer code;

    private final String message;

    LabelEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
